﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GMS.MainForm;
using GMS.MainClasses;

namespace GMS
{
    public partial class AuthenthificationForm : Form
    {
        public AuthenthificationForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            String CS = "server=pavel;uid="+textBox1.Text.Trim()+";pwd="+textBox2.Text.Trim()+";database=GMSDatabase";
            GMS.MainForm.MainRunnableForm MRF = new MainRunnableForm("Pavel", "GMSDatabase", "Pavel");
            MRF.ConnectionString = CS;
            MRF.Show();
        }
    }
}
